package cn.clwxy.gdz.service;

import org.apache.commons.dbutils.handlers.ScalarHandler;

import cn.clwxy.gdz.util.BaseDao;

public class RegistBeanServiceImpl extends BaseDao implements RegistBeanService{

	@Override
	public boolean isVisible(String phoneNum) {
		String sql="SELECT count(teacherId) FROM `teacher` where teacherPhone=?";
		Long count= super.queryColumn(sql, new ScalarHandler(), phoneNum);
		boolean bool=false;
		if(count==0){
			bool=true;
		}
		 return bool;
	}
}
